package com.wkbb.common.enums;

public enum SmartPositionEnum  {
    //岗位ID( 5幼儿园 6小学 7中职 8初中 9高中 10高职 11本科 12培训学校 13完中 14九年一贯 15十二年一贯)
    ORG_TYPE_5_MASTER(58,"园长"),
    ORG_TYPE_5_MASTERTEACHER(64,"主班"),
    ORG_TYPE_5_TEACHERCOURSE(65,"副班"),

    ORG_TYPE_6_MASTER(75,"校长"),
    ORG_TYPE_6_MASTERTEACHER(97,"教师"),

    ORG_TYPE_7_MASTER(103,"校长"),
    ORG_TYPE_7_MASTERTEACHER(125,"教师"),

    ORG_TYPE_8_MASTER(131,"校长"),
    ORG_TYPE_8_MASTERTEACHER(153,"教师"),

    ORG_TYPE_9_MASTER(159,"校长"),
    ORG_TYPE_9_MASTERTEACHER(181,"教师"),

    ORG_TYPE_13_MASTER(187,"校长"),
    ORG_TYPE_13_MASTERTEACHER(209,"教师"),

    ORG_TYPE_14_MASTER(215,"校长"),
    ORG_TYPE_14_MASTERTEACHER(237,"教师"),

    ORG_TYPE_15_MASTER(243,"校长"),
    ORG_TYPE_15_MASTERTEACHER(265,"教师"),

    ORG_TYPE_11_MASTER(287,"校长"),
    ORG_TYPE_11_MASTERTEACHER(307,"教师");



    private Integer code;
    private String desc;

    SmartPositionEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    // 普通方法
    public static String getDesc(short code) {
        for (SmartPositionEnum smartPositionEnum : SmartPositionEnum.values()) {
            if (smartPositionEnum.getCode() == code) {
                return smartPositionEnum.desc;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
